<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<%@ include file="../common/_new_head.jsp" %>
<div class="content-wrapper">
    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-sm-12">
                <div class="small-box bg-yellow" style="background-color: #DB8907 !important;">
                    <div class="inner">
                        <h3>${match.name}（${match.state}）</h3>

                        <p>报名时间：${match.signUpTime} 至 ${match.closingTime}</p>

                        <p>规模：${match.playerNum}人 赛制：${match.type}</p>
                    </div>
                    <div class="icon">
                        <img src="/img/dog.png" class="img-circle img-responsive">
                    </div>
                    <a href="/battle/${match.id}" class="small-box-footer">
                        对阵表 <i class="fa fa-arrow-circle-right"></i>
                    </a>
                </div>
            </div>
        </div>

        <h1>已有<b>${users.totalRow}</b>名水友报名！&nbsp;&nbsp;
            <a href="/SignUp/signUp/${match.id}">我要报名</a>
        </h1>

        <div class="row">
            <div class="col-sm-12">
                <div class="box table-responsive">
                    <table class="table table-striped">
                        <tbody>
                        <tr>
                            <th>序号</th>
                            <th>战网</th>
                            <th>报名时间</th>
                        </tr>
                        <c:forEach items="${users.list}" var="user" varStatus="xh">
                            <tr>
                                <td style="text-align:left;">${(users.pageNumber-1)*20+xh.count}</td>
                                <td style="text-align:left;">${user.name}</td>
                                <td style="text-align:left;">${user.create_time}</td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                    <c:set var="currentPage" value="${users.pageNumber}"/>
                    <c:set var="totalPage" value="${users.totalPage}"/>
                    <c:set var="actionUrl" value="/SignUp/${match.id}-"/>
                    <c:set var="urlParas" value=""/>
                    <%@ include file="../common/_paginate.jsp" %>
                </div>
            </div>
            <!-- /.row -->
    </section>
    <!-- /.content -->
</div>
<%@ include file="../common/_new_foot.jsp" %>
</html>
